package com.wch.SpringBootTestDemo.activemq;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Component;

@Component
public class JMSConsumerOne {

	private Logger logger = LoggerFactory.getLogger(JMSConsumerOne.class);
	
	@JmsListener(destination="message_queue")
	public void receiveQueue(String message){
		logger.info("JMSConsumerOne:收到报文--"+message);
	}
}
